import 'package:fish_redux/fish_redux.dart';

enum UserEditInfoViewAction {
  action,
  onTap,
  onSubmit,
  onSelectHeader,
}

class UserEditInfoViewActionCreator {
  static Action onAction() {
    return const Action(UserEditInfoViewAction.action);
  }

  static Action onTap(data) {
    return Action(UserEditInfoViewAction.onTap, payload: data);
  }

  static Action onSubmit() {
    return const Action(UserEditInfoViewAction.onSubmit);
  }

  static Action onSelectHeader(dynamic file) {
    return Action(UserEditInfoViewAction.onSelectHeader, payload: file);
  }
}
